<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet -->
<title>HlsMediaPlaylist (ExoPlayer library)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="HlsMediaPlaylist (ExoPlayer library)";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.google.android.exoplayer2.source.hls.playlist</a></div>
<h2 title="Class HlsMediaPlaylist" class="title">Class HlsMediaPlaylist</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="HlsPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist</a></li>
<li>
<ul class="inheritance">
<li>com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="../../../offline/FilterableManifest.html" title="interface in com.google.android.exoplayer2.offline">FilterableManifest</a>&lt;<a href="HlsPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsPlaylist</a>&gt;</code></dd>
</dl>
<hr>
<pre>public final class <span class="typeNameLabel">HlsMediaPlaylist</span>
extends <a href="HlsPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsPlaylist</a></pre>
<div class="block">Represents an HLS media playlist.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!--   -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="HlsMediaPlaylist.Part.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.Part</a></span></code></th>
<td class="colLast">
<div class="block">A media part.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="HlsMediaPlaylist.PlaylistType.html" title="annotation in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.PlaylistType</a></span></code></th>
<td class="colLast">
<div class="block">Type of the playlist, as defined by #EXT-X-PLAYLIST-TYPE.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="HlsMediaPlaylist.RenditionReport.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.RenditionReport</a></span></code></th>
<td class="colLast">
<div class="block">A rendition report for an alternative rendition defined in another media playlist.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="HlsMediaPlaylist.Segment.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.Segment</a></span></code></th>
<td class="colLast">
<div class="block">Media segment reference.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="HlsMediaPlaylist.SegmentBase.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.SegmentBase</a></span></code></th>
<td class="colLast">
<div class="block">The base for a <a href="HlsMediaPlaylist.Segment.html" title="class in com.google.android.exoplayer2.source.hls.playlist"><code>HlsMediaPlaylist.Segment</code></a> or a <a href="HlsMediaPlaylist.Part.html" title="class in com.google.android.exoplayer2.source.hls.playlist"><code>HlsMediaPlaylist.Part</code></a> required for playback.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="HlsMediaPlaylist.ServerControl.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.ServerControl</a></span></code></th>
<td class="colLast">
<div class="block">Server control attributes.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#discontinuitySequence">discontinuitySequence</a></span></code></th>
<td class="colLast">
<div class="block">The discontinuity sequence number of the first media segment in the playlist, as defined by
 #EXT-X-DISCONTINUITY-SEQUENCE.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#durationUs">durationUs</a></span></code></th>
<td class="colLast">
<div class="block">The total duration of the playlist in microseconds.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasDiscontinuitySequence">hasDiscontinuitySequence</a></span></code></th>
<td class="colLast">
<div class="block">Whether the playlist contains the #EXT-X-DISCONTINUITY-SEQUENCE tag.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasEndTag">hasEndTag</a></span></code></th>
<td class="colLast">
<div class="block">Whether the playlist contains the #EXT-X-ENDLIST tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasPositiveStartOffset">hasPositiveStartOffset</a></span></code></th>
<td class="colLast">
<div class="block">Whether the <a href="#startOffsetUs"><code>startOffsetUs</code></a> was explicitly defined by #EXT-X-START as a positive value
 or zero.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasProgramDateTime">hasProgramDateTime</a></span></code></th>
<td class="colLast">
<div class="block">Whether the playlist contains a #EXT-X-PROGRAM-DATE-TIME tag.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#mediaSequence">mediaSequence</a></span></code></th>
<td class="colLast">
<div class="block">The media sequence number of the first media segment in the playlist, as defined by
 #EXT-X-MEDIA-SEQUENCE.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#partTargetDurationUs">partTargetDurationUs</a></span></code></th>
<td class="colLast">
<div class="block">The target duration for segment parts, as defined by #EXT-X-PART-INF, or <a href="../../../C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a>
 if undefined.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAYLIST_TYPE_EVENT">PLAYLIST_TYPE_EVENT</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAYLIST_TYPE_UNKNOWN">PLAYLIST_TYPE_UNKNOWN</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAYLIST_TYPE_VOD">PLAYLIST_TYPE_VOD</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#playlistType">playlistType</a></span></code></th>
<td class="colLast">
<div class="block">The type of the playlist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#preciseStart">preciseStart</a></span></code></th>
<td class="colLast">
<div class="block">Whether the start position should be precise, as defined by #EXT-X-START.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#protectionSchemes">protectionSchemes</a></span></code></th>
<td class="colLast">
<div class="block">Contains the CDM protection schemes used by segments in this playlist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/util/Map.html" title="class or interface in java.util" class="externalLink">Map</a>&lt;<a href="https://developer.android.com/reference/android/net/Uri.html?is-external=true" title="class or interface in android.net" class="externalLink">Uri</a>,&#8203;<a href="HlsMediaPlaylist.RenditionReport.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.RenditionReport</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#renditionReports">renditionReports</a></span></code></th>
<td class="colLast">
<div class="block">The rendition reports of alternative rendition playlists.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="HlsMediaPlaylist.Segment.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.Segment</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#segments">segments</a></span></code></th>
<td class="colLast">
<div class="block">The list of segments in the playlist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="HlsMediaPlaylist.ServerControl.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.ServerControl</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#serverControl">serverControl</a></span></code></th>
<td class="colLast">
<div class="block">The attributes of the #EXT-X-SERVER-CONTROL header.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#startOffsetUs">startOffsetUs</a></span></code></th>
<td class="colLast">
<div class="block">The start offset in microseconds from the beginning of the playlist, as defined by
 #EXT-X-START, or <a href="../../../C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if undefined.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#startTimeUs">startTimeUs</a></span></code></th>
<td class="colLast">
<div class="block">If <a href="#hasProgramDateTime"><code>hasProgramDateTime</code></a> is true, contains the datetime as microseconds since epoch.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#targetDurationUs">targetDurationUs</a></span></code></th>
<td class="colLast">
<div class="block">The target duration in microseconds, as defined by #EXT-X-TARGETDURATION.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="HlsMediaPlaylist.Part.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.Part</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#trailingParts">trailingParts</a></span></code></th>
<td class="colLast">
<div class="block">The list of parts at the end of the playlist for which the segment is not in the playlist yet.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#version">version</a></span></code></th>
<td class="colLast">
<div class="block">The compatibility version, as defined by #EXT-X-VERSION.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="fields.inherited.from.class.com.google.android.exoplayer2.source.hls.playlist.HlsPlaylist">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;com.google.android.exoplayer2.source.hls.playlist.<a href="HlsPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsPlaylist</a></h3>
<code><a href="HlsPlaylist.html#baseUri">baseUri</a>, <a href="HlsPlaylist.html#hasIndependentSegments">hasIndependentSegments</a>, <a href="HlsPlaylist.html#tags">tags</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(int,java.lang.String,java.util.List,long,boolean,long,boolean,int,long,int,long,long,boolean,boolean,boolean,com.google.android.exoplayer2.drm.DrmInitData,java.util.List,java.util.List,com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.ServerControl,java.util.Map)">HlsMediaPlaylist</a></span>&#8203;(int&nbsp;playlistType,
                <a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>&nbsp;baseUri,
                <a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="https://developer.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_top">String</a>&gt;&nbsp;tags,
                long&nbsp;startOffsetUs,
                boolean&nbsp;preciseStart,
                long&nbsp;startTimeUs,
                boolean&nbsp;hasDiscontinuitySequence,
                int&nbsp;discontinuitySequence,
                long&nbsp;mediaSequence,
                int&nbsp;version,
                long&nbsp;targetDurationUs,
                long&nbsp;partTargetDurationUs,
                boolean&nbsp;hasIndependentSegments,
                boolean&nbsp;hasEndTag,
                boolean&nbsp;hasProgramDateTime,
                <a href="../../../drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a>&nbsp;protectionSchemes,
                <a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="HlsMediaPlaylist.Segment.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.Segment</a>&gt;&nbsp;segments,
                <a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="HlsMediaPlaylist.Part.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.Part</a>&gt;&nbsp;trailingParts,
                <a href="HlsMediaPlaylist.ServerControl.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.ServerControl</a>&nbsp;serverControl,
                <a href="https://developer.android.com/reference/java/util/Map.html" title="class or interface in java.util" class="externalLink">Map</a>&lt;<a href="https://developer.android.com/reference/android/net/Uri.html?is-external=true" title="class or interface in android.net" class="externalLink">Uri</a>,&#8203;<a href="HlsMediaPlaylist.RenditionReport.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.RenditionReport</a>&gt;&nbsp;renditionReports)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="HlsMediaPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copy(java.util.List)">copy</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="../../../offline/StreamKey.html" title="class in com.google.android.exoplayer2.offline" target="_top">StreamKey</a>&gt;&nbsp;streamKeys)</code></th>
<td class="colLast">
<div class="block">Returns a copy of the manifest including only the streams specified by the given keys.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="HlsMediaPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWith(long,int)">copyWith</a></span>&#8203;(long&nbsp;startTimeUs,
        int&nbsp;discontinuitySequence)</code></th>
<td class="colLast">
<div class="block">Returns a playlist identical to this one except for the start time, the discontinuity sequence
 and <code>hasDiscontinuitySequence</code> values.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="HlsMediaPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copyWithEndTag()">copyWithEndTag</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a playlist identical to this one except that an end tag is added.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEndTimeUs()">getEndTimeUs</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the result of adding the duration of the playlist to its start time.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isNewerThan(com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist)">isNewerThan</a></span>&#8203;(<a href="HlsMediaPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist</a>&nbsp;other)</code></th>
<td class="colLast">
<div class="block">Returns whether this playlist is newer than <code>other</code>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></h3>
<code><a href="https://developer.android.com/reference/java/lang/Object.html#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink" target="_top">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a id="PLAYLIST_TYPE_UNKNOWN">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAYLIST_TYPE_UNKNOWN</h4>
<pre>public static final&nbsp;int PLAYLIST_TYPE_UNKNOWN</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../constant-values.html#com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.PLAYLIST_TYPE_UNKNOWN">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAYLIST_TYPE_VOD">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAYLIST_TYPE_VOD</h4>
<pre>public static final&nbsp;int PLAYLIST_TYPE_VOD</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../constant-values.html#com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.PLAYLIST_TYPE_VOD">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAYLIST_TYPE_EVENT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAYLIST_TYPE_EVENT</h4>
<pre>public static final&nbsp;int PLAYLIST_TYPE_EVENT</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../../constant-values.html#com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.PLAYLIST_TYPE_EVENT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="playlistType">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>playlistType</h4>
<pre><a href="HlsMediaPlaylist.PlaylistType.html" title="annotation in com.google.android.exoplayer2.source.hls.playlist">@PlaylistType</a>
public final&nbsp;int playlistType</pre>
<div class="block">The type of the playlist. See <a href="HlsMediaPlaylist.PlaylistType.html" title="annotation in com.google.android.exoplayer2.source.hls.playlist"><code>HlsMediaPlaylist.PlaylistType</code></a>.</div>
</li>
</ul>
<a id="startOffsetUs">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startOffsetUs</h4>
<pre>public final&nbsp;long startOffsetUs</pre>
<div class="block">The start offset in microseconds from the beginning of the playlist, as defined by
 #EXT-X-START, or <a href="../../../C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if undefined. The value is guaranteed to be between 0 and
 <a href="#durationUs"><code>durationUs</code></a>, inclusive.</div>
</li>
</ul>
<a id="hasPositiveStartOffset">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasPositiveStartOffset</h4>
<pre>public final&nbsp;boolean hasPositiveStartOffset</pre>
<div class="block">Whether the <a href="#startOffsetUs"><code>startOffsetUs</code></a> was explicitly defined by #EXT-X-START as a positive value
 or zero.</div>
</li>
</ul>
<a id="preciseStart">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>preciseStart</h4>
<pre>public final&nbsp;boolean preciseStart</pre>
<div class="block">Whether the start position should be precise, as defined by #EXT-X-START.</div>
</li>
</ul>
<a id="startTimeUs">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startTimeUs</h4>
<pre>public final&nbsp;long startTimeUs</pre>
<div class="block">If <a href="#hasProgramDateTime"><code>hasProgramDateTime</code></a> is true, contains the datetime as microseconds since epoch.
 Otherwise, contains the aggregated duration of removed segments up to this snapshot of the
 playlist.</div>
</li>
</ul>
<a id="hasDiscontinuitySequence">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasDiscontinuitySequence</h4>
<pre>public final&nbsp;boolean hasDiscontinuitySequence</pre>
<div class="block">Whether the playlist contains the #EXT-X-DISCONTINUITY-SEQUENCE tag.</div>
</li>
</ul>
<a id="discontinuitySequence">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>discontinuitySequence</h4>
<pre>public final&nbsp;int discontinuitySequence</pre>
<div class="block">The discontinuity sequence number of the first media segment in the playlist, as defined by
 #EXT-X-DISCONTINUITY-SEQUENCE.</div>
</li>
</ul>
<a id="mediaSequence">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mediaSequence</h4>
<pre>public final&nbsp;long mediaSequence</pre>
<div class="block">The media sequence number of the first media segment in the playlist, as defined by
 #EXT-X-MEDIA-SEQUENCE.</div>
</li>
</ul>
<a id="version">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>version</h4>
<pre>public final&nbsp;int version</pre>
<div class="block">The compatibility version, as defined by #EXT-X-VERSION.</div>
</li>
</ul>
<a id="targetDurationUs">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>targetDurationUs</h4>
<pre>public final&nbsp;long targetDurationUs</pre>
<div class="block">The target duration in microseconds, as defined by #EXT-X-TARGETDURATION.</div>
</li>
</ul>
<a id="partTargetDurationUs">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>partTargetDurationUs</h4>
<pre>public final&nbsp;long partTargetDurationUs</pre>
<div class="block">The target duration for segment parts, as defined by #EXT-X-PART-INF, or <a href="../../../C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a>
 if undefined.</div>
</li>
</ul>
<a id="hasEndTag">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasEndTag</h4>
<pre>public final&nbsp;boolean hasEndTag</pre>
<div class="block">Whether the playlist contains the #EXT-X-ENDLIST tag.</div>
</li>
</ul>
<a id="hasProgramDateTime">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasProgramDateTime</h4>
<pre>public final&nbsp;boolean hasProgramDateTime</pre>
<div class="block">Whether the playlist contains a #EXT-X-PROGRAM-DATE-TIME tag.</div>
</li>
</ul>
<a id="protectionSchemes">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>protectionSchemes</h4>
<pre>@Nullable
public final&nbsp;<a href="../../../drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a> protectionSchemes</pre>
<div class="block">Contains the CDM protection schemes used by segments in this playlist. Does not contain any key
 acquisition data. Null if none of the segments in the playlist is CDM-encrypted.</div>
</li>
</ul>
<a id="segments">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>segments</h4>
<pre>public final&nbsp;<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="HlsMediaPlaylist.Segment.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.Segment</a>&gt; segments</pre>
<div class="block">The list of segments in the playlist.</div>
</li>
</ul>
<a id="trailingParts">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>trailingParts</h4>
<pre>public final&nbsp;<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="HlsMediaPlaylist.Part.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.Part</a>&gt; trailingParts</pre>
<div class="block">The list of parts at the end of the playlist for which the segment is not in the playlist yet.</div>
</li>
</ul>
<a id="renditionReports">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>renditionReports</h4>
<pre>public final&nbsp;<a href="https://developer.android.com/reference/java/util/Map.html" title="class or interface in java.util" class="externalLink">Map</a>&lt;<a href="https://developer.android.com/reference/android/net/Uri.html?is-external=true" title="class or interface in android.net" class="externalLink">Uri</a>,&#8203;<a href="HlsMediaPlaylist.RenditionReport.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.RenditionReport</a>&gt; renditionReports</pre>
<div class="block">The rendition reports of alternative rendition playlists.</div>
</li>
</ul>
<a id="durationUs">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>durationUs</h4>
<pre>public final&nbsp;long durationUs</pre>
<div class="block">The total duration of the playlist in microseconds.</div>
</li>
</ul>
<a id="serverControl">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>serverControl</h4>
<pre>public final&nbsp;<a href="HlsMediaPlaylist.ServerControl.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.ServerControl</a> serverControl</pre>
<div class="block">The attributes of the #EXT-X-SERVER-CONTROL header.</div>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(int,java.lang.String,java.util.List,long,boolean,long,boolean,int,long,int,long,long,boolean,boolean,boolean,com.google.android.exoplayer2.drm.DrmInitData,java.util.List,java.util.List,com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.ServerControl,java.util.Map)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HlsMediaPlaylist</h4>
<pre>public&nbsp;HlsMediaPlaylist&#8203;(<a href="HlsMediaPlaylist.PlaylistType.html" title="annotation in com.google.android.exoplayer2.source.hls.playlist">@PlaylistType</a>
                        int&nbsp;playlistType,
                        <a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>&nbsp;baseUri,
                        <a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="https://developer.android.com/reference/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_top">String</a>&gt;&nbsp;tags,
                        long&nbsp;startOffsetUs,
                        boolean&nbsp;preciseStart,
                        long&nbsp;startTimeUs,
                        boolean&nbsp;hasDiscontinuitySequence,
                        int&nbsp;discontinuitySequence,
                        long&nbsp;mediaSequence,
                        int&nbsp;version,
                        long&nbsp;targetDurationUs,
                        long&nbsp;partTargetDurationUs,
                        boolean&nbsp;hasIndependentSegments,
                        boolean&nbsp;hasEndTag,
                        boolean&nbsp;hasProgramDateTime,
                        @Nullable
                        <a href="../../../drm/DrmInitData.html" title="class in com.google.android.exoplayer2.drm">DrmInitData</a>&nbsp;protectionSchemes,
                        <a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="HlsMediaPlaylist.Segment.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.Segment</a>&gt;&nbsp;segments,
                        <a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="HlsMediaPlaylist.Part.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.Part</a>&gt;&nbsp;trailingParts,
                        <a href="HlsMediaPlaylist.ServerControl.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist.ServerControl</a>&nbsp;serverControl,
                        <a href="https://developer.android.com/reference/java/util/Map.html" title="class or interface in java.util" class="externalLink">Map</a>&lt;<a href="https://developer.android.com/reference/android/net/Uri.html?is-external=true" title="class or interface in android.net" class="externalLink">Uri</a>,&#8203;<a href="HlsMediaPlaylist.RenditionReport.html" title="class in com.google.android.exoplayer2.source.hls.playlist" target="_top">HlsMediaPlaylist.RenditionReport</a>&gt;&nbsp;renditionReports)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>playlistType</code> - See <a href="#playlistType"><code>playlistType</code></a>.</dd>
<dd><code>baseUri</code> - See <a href="HlsPlaylist.html#baseUri"><code>HlsPlaylist.baseUri</code></a>.</dd>
<dd><code>tags</code> - See <a href="HlsPlaylist.html#tags"><code>HlsPlaylist.tags</code></a>.</dd>
<dd><code>startOffsetUs</code> - See <a href="#startOffsetUs"><code>startOffsetUs</code></a>.</dd>
<dd><code>startTimeUs</code> - See <a href="#startTimeUs"><code>startTimeUs</code></a>.</dd>
<dd><code>hasDiscontinuitySequence</code> - See <a href="#hasDiscontinuitySequence"><code>hasDiscontinuitySequence</code></a>.</dd>
<dd><code>discontinuitySequence</code> - See <a href="#discontinuitySequence"><code>discontinuitySequence</code></a>.</dd>
<dd><code>mediaSequence</code> - See <a href="#mediaSequence"><code>mediaSequence</code></a>.</dd>
<dd><code>version</code> - See <a href="#version"><code>version</code></a>.</dd>
<dd><code>targetDurationUs</code> - See <a href="#targetDurationUs"><code>targetDurationUs</code></a>.</dd>
<dd><code>hasIndependentSegments</code> - See <a href="HlsPlaylist.html#hasIndependentSegments"><code>HlsPlaylist.hasIndependentSegments</code></a>.</dd>
<dd><code>hasEndTag</code> - See <a href="#hasEndTag"><code>hasEndTag</code></a>.</dd>
<dd><code>hasProgramDateTime</code> - See <a href="#hasProgramDateTime"><code>hasProgramDateTime</code></a>.</dd>
<dd><code>protectionSchemes</code> - See <a href="#protectionSchemes"><code>protectionSchemes</code></a>.</dd>
<dd><code>segments</code> - See <a href="#segments"><code>segments</code></a>.</dd>
<dd><code>trailingParts</code> - See <a href="#trailingParts"><code>trailingParts</code></a>.</dd>
<dd><code>serverControl</code> - See <a href="#serverControl"><code>serverControl</code></a></dd>
<dd><code>renditionReports</code> - See <a href="#renditionReports"><code>renditionReports</code></a>.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a id="copy(java.util.List)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre class="methodSignature">public&nbsp;<a href="HlsMediaPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist</a>&nbsp;copy&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="../../../offline/StreamKey.html" title="class in com.google.android.exoplayer2.offline" target="_top">StreamKey</a>&gt;&nbsp;streamKeys)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../offline/FilterableManifest.html#copy(java.util.List)">FilterableManifest</a></code></span></div>
<div class="block">Returns a copy of the manifest including only the streams specified by the given keys. If the
 manifest is unchanged then the instance may return itself.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>streamKeys</code> - A non-empty list of stream keys.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The filtered manifest.</dd>
</dl>
</li>
</ul>
<a id="isNewerThan(com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNewerThan</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isNewerThan&#8203;(@Nullable
                           <a href="HlsMediaPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist</a>&nbsp;other)</pre>
<div class="block">Returns whether this playlist is newer than <code>other</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>other</code> - The playlist to compare.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether this playlist is newer than <code>other</code>.</dd>
</dl>
</li>
</ul>
<a id="getEndTimeUs()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEndTimeUs</h4>
<pre class="methodSignature">public&nbsp;long&nbsp;getEndTimeUs()</pre>
<div class="block">Returns the result of adding the duration of the playlist to its start time.</div>
</li>
</ul>
<a id="copyWith(long,int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copyWith</h4>
<pre class="methodSignature">public&nbsp;<a href="HlsMediaPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist</a>&nbsp;copyWith&#8203;(long&nbsp;startTimeUs,
                                 int&nbsp;discontinuitySequence)</pre>
<div class="block">Returns a playlist identical to this one except for the start time, the discontinuity sequence
 and <code>hasDiscontinuitySequence</code> values. The first two are set to the specified values,
 <code>hasDiscontinuitySequence</code> is set to true.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>startTimeUs</code> - The start time for the returned playlist.</dd>
<dd><code>discontinuitySequence</code> - The discontinuity sequence for the returned playlist.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>An identical playlist including the provided discontinuity and timing information.</dd>
</dl>
</li>
</ul>
<a id="copyWithEndTag()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>copyWithEndTag</h4>
<pre class="methodSignature">public&nbsp;<a href="HlsMediaPlaylist.html" title="class in com.google.android.exoplayer2.source.hls.playlist">HlsMediaPlaylist</a>&nbsp;copyWithEndTag()</pre>
<div class="block">Returns a playlist identical to this one except that an end tag is added. If an end tag is
 already present then the playlist will return itself.</div>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>
